﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EmployeeList.ascx.cs"
    Inherits="Control_EmployeesList" %>
<style type="text/css">
    .iframe
    {
        overflow-x: hidden;
        overflow-y: scroll;
    }
</style>
<style type="text/css">
    .normal
    {
        background-color: white;
    }
    .highlight
    {
        background-color: #FFD8B0;
    }
</style>
<%--
<script language="javascript" type="text/javascript">

function confirmMsg(frm){
    for(i=0; i<frm.length; i++){
        if(frm.elements[i].name.indexOf('deleteRec') != -1){
            if(frm.elements[i].checked)
            return confirm ('Are you sure you want to delete your selection(s)?');
        }
    }
}
</script>--%>
<div class="iframe" style="width: 768px; height: 791px;" align="center">
    <table width="100%" align="center">
        <tr>
            <td style="text-align: center">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="text-align: left; font-family: Cambria; font-size: 36px;">
                &nbsp;&nbsp;
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="30px" Text="EMPLOYEES LIST"
                    Font-Names="Cambria"></asp:Label>
                &nbsp;
                <%--<asp:Button ID="btnAdd" runat="server" Style="text-align: center" Text="ADD NEW"
                    OnClick="btnAdd_Click" Font-Bold="True" Font-Size="17px" Font-Names="Cambria"
                    Height="33px" />--%>
                <asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/images/addnew_btn.png" OnClick="btnAdd_Click" />
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="text-align: center">
                <asp:GridView ID="grvShow" runat="server" DataKeyNames="EMP_ID" Style="text-align: center;
                    position: static" AutoGenerateColumns="False" BackColor="White" BorderColor="#FF9933"
                    BorderStyle="Solid" BorderWidth="1px" CellPadding="1" ForeColor="Black" Height="791px"
                    HorizontalAlign="Center" Width="738px" GridLines="Vertical" Font-Size="17px"
                    OnRowCreated="grvShow_RowCreated">
                    <RowStyle Height="30px" />
                    <Columns>
                        <asp:TemplateField HeaderText="NAME">
                            <ItemTemplate>
                                <asp:HyperLink Font-Underline="False" Font-Overline="False" ForeColor="Black" ID="HyperLink1"
                                    runat="server" 
                                    NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>' 
                                    Text='<%# Eval("FULLNAME") %>'>
                                    
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ADDRESS">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink2" Font-Underline="False" Font-Overline="False" ForeColor="Black"
                                    runat="server" 
                                    NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>' 
                                    Text='<%# Eval("EMP_ADDRESS") %>'>
                                    
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="PHONE">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink3" Font-Underline="false" Font-Overline="false" ForeColor="Black"
                                    runat="server" NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>'>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Eval("EMP_PHONE") %>'></asp:Label>
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="START DATE">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink4" Font-Underline="false" Font-Overline="false" ForeColor="Black"
                                    runat="server" NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>'>
                                    <asp:Label ID="Label6" runat="server" Text='<%# Eval("STARTDATE") %>'></asp:Label>
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="LICENSE">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink5" Font-Underline="false" Font-Overline="false" ForeColor="Black"
                                    runat="server" NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>'>
                                    <asp:Label ID="Label7" runat="server" Text='<%# Eval("EMP_LICENSE") %>'></asp:Label>
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="POSITION">
                            <ItemTemplate>
<<<<<<< .mine
                                <asp:LinkButton ID="HyperLink6" Font-Underline="false" Font-Overline="false" ForeColor="Black"
                                    runat="server" NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>'>
=======
                                <asp:HyperLink ID="HyperLink6" Font-Underline="false" Font-Overline="false" ForeColor="Black"
                                    runat="server" NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>'>
>>>>>>> .r328
                                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("EMP_POSITION") %>'></asp:Label>
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="COMMISSION">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink7" Font-Underline="false" Font-Overline="false" ForeColor="Black"
                                    runat="server" NavigateUrl='<%# Eval("EMP_ID", "../../Admin_EditEmployee.aspx?EMP_ID={0}") %>'>
                                    <asp:Label ID="Label9" runat="server" Text='<%# Eval("EMP_COMMISSION") %>'></asp:Label>
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#FFFF99" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <SelectedRowStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" Height="30px"
                        Font-Size="17px" Width="738px" />
                    <AlternatingRowStyle BackColor="#CCCCCC" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    <br />
    &nbsp;
</div>
